const baseUrl = "http://api.netceng.com"

function requst(method, path, data,Authorization) {
	return new Promise(result => {	
		uni.request({
			url: baseUrl + path,
			method: method,
			header: {
				"Authorization": Authorization,
				'Device': "android",
				"Accept": "application/json",
				"JOKE": "whatafuckpark!",
				
			},
			data,
			success: res => {
				result(res)
			}
		})
	})
}

// 园区招聘
const Invite = (Authorization,page,num,park_id,data) => {
	const url = `/v1/park/recruit-list?Authorization=${Authorization}&page=${page}&num=${num}&park_id=${park_id}`
	return requst("post", url,data,Authorization)
}
export{
	  Invite  //招聘
}



// 园区详情
// const Details = (park_id,data)=>{
// 	const url = `/v1/park/detail`
// 	return requst("get",url,data)
// }
// 政务
// const Party = (type,park_id,page,num,data)=>{
// 	const url = `/v1/home/article?type=${type}&park_id=${park_id}&page=${page}&num=${num}`
// 	return requst("get",url,data)
// }